package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.UserAddress;
import com.zimmur.app.mocolink.domain.model.UserAddressExample;
import com.zimmur.app.mocolink.domain.vo.UserAddressInfo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserAddressMapper {
    int countByExample(UserAddressExample example);

    int deleteByExample(UserAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    List<UserAddress> selectByExample(UserAddressExample example);

    UserAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserAddress record, @Param("example") UserAddressExample example);

    int updateByExample(@Param("record") UserAddress record, @Param("example") UserAddressExample example);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);
    
    int cancelDefault(Integer userId);
    /**
     * 根据用户ID查询
     *@Description
     *@param userId
     *@return 
     *@author zcx
     *@Time 2017年10月13日 下午8:11:25
     */
    List<UserAddressInfo> selectByUserId(Integer userId);
}